package com.freshcity.component
{
	import com.pblabs.debug.Logger;
	
	import fl.controls.Label;
	import fl.controls.listClasses.ICellRenderer;
	import fl.controls.listClasses.ListData;
	
	public class TimerRenderer extends Label implements ICellRenderer
	{
		private var _listData:ListData;
		private var _minute:int;
		private var _second:int;
		private var _data:Object;
		
		public function TimerRenderer()
		{
			super();
		}
		
		public function get listData():ListData
		{
			return _listData;
		}
		
		public function set listData(value:ListData):void
		{
			_listData = value;
		}
		
		public function get data():Object
		{
			return _data;
		}
		
		public function set data(value:Object):void
		{
			this._data = value;
			this.minute = value.minute;
			this.second = value.second;
			Logger.debug(this,"set data is ",value.minute + "/" + value.second);
			this.text = this.minute + ":" + this.second;
		}
		
		public function get selected():Boolean
		{
			return false;
		}
		
		public function set selected(value:Boolean):void
		{
		}
		
		public function setMouseState(state:String):void
		{
		}

		public function get minute():int
		{
			return _minute;
		}

		public function set minute(value:int):void
		{
			_minute = value;
		}

		public function get second():int
		{
			return _second;
		}

		public function set second(value:int):void
		{
			_second = value;
		}


	}
}

